package palidino76.rs2.content;

import palidino76.rs2.player.*;
import palidino76.rs2.util.Misc;
import palidino76.rs2.Server;

public class LevelUp {
	public LevelUp(){
	}
	
	public LevelUp(Player p, int skillID) {
		if(p == null || skillID < 0 || skillID > 23) {
			return;
		}
		if(skillID == 0) {
				p.leveledUpSkill = 0;
				p.leveledUp[0] = true;
				p.requestGFX(199,0);
				p.frames.sendMessage(p, "You've just advanced a " + Misc.getSkillName(0) + " level! You have reached level " + p.skillLvl[0] + ".");
				p.frames.setString(p, "Congratulations, you have just advanced a " + Misc.getSkillName(0) + " level!", 740, 0);
				p.frames.setString(p, "You have now reached level " + p.skillLvl[0] + "!", 740, 1);
				p.frames.setConfig(p, 1179, 1);
				p.frames.showChatboxInterface(p, 740);
		}
		if(skillID == 1) {
			p.leveledUpSkill = 1;
			p.leveledUp[1] = true;
			p.requestGFX(199,0);
			p.frames.sendMessage(p, "You've just advanced a " + Misc.getSkillName(1) + " level! You have reached level " + p.skillLvl[1] + ".");
			p.frames.setString(p, "Congratulations, you have just advanced a " + Misc.getSkillName(1) + " level!", 740, 0);
			p.frames.setString(p, "You have now reached level " + p.skillLvl[1] + "!", 740, 1);
			p.frames.setConfig(p, 1179, 4);
			p.frames.showChatboxInterface(p, 740);
		}
		if(skillID == 2) {
			p.leveledUpSkill = 2;
			p.leveledUp[2] = true;
			p.requestGFX(199,0);
			p.frames.sendMessage(p, "You've just advanced a " + Misc.getSkillName(2) + " level! You have reached level " + p.skillLvl[2] + ".");
			p.frames.setString(p, "Congratulations, you have just advanced a " + Misc.getSkillName(2) + " level!", 740, 0);
			p.frames.setString(p, "You have now reached level " + p.skillLvl[2] + "!", 740, 1);
			p.frames.setConfig(p, 1179, 2);
			p.frames.showChatboxInterface(p, 740);
		}
		if(skillID == 3) {
			p.leveledUpSkill = 3;
			p.leveledUp[3] = true;
			p.requestGFX(199,0);
			p.frames.sendMessage(p, "You've just advanced a " + Misc.getSkillName(3) + " level! You have reached level " + p.skillLvl[3] + ".");
			p.frames.setString(p, "Congratulations, you have just advanced a " + Misc.getSkillName(3) + " level!", 740, 0);
			p.frames.setString(p, "You have now reached level " + p.skillLvl[3] + "!", 740, 1);
			p.frames.setConfig(p, 1179, 64);
			p.frames.showChatboxInterface(p, 740);
		}
		if(skillID == 4) {
			p.leveledUpSkill = 4;
			p.leveledUp[4] = true;
			p.requestGFX(199,0);
			p.frames.sendMessage(p, "You've just advanced a " + Misc.getSkillName(4) + " level! You have reached level " + p.skillLvl[4] + ".");
			p.frames.setString(p, "Congratulations, you have just advanced a " + Misc.getSkillName(4) + " level!", 740, 0);
			p.frames.setString(p, "You have now reached level " + p.skillLvl[4] + "!", 740, 1);
			p.frames.setConfig(p, 1179, 8);
			p.frames.showChatboxInterface(p, 740);
		}
		if(skillID == 5) {
			p.leveledUpSkill = 5;
			p.leveledUp[5] = true;
			p.requestGFX(199,0);
			p.frames.sendMessage(p, "You've just advanced a " + Misc.getSkillName(5) + " level! You have reached level " + p.skillLvl[5] + ".");
			p.frames.setString(p, "Congratulations, you have just advanced a " + Misc.getSkillName(5) + " level!", 740, 0);
			p.frames.setString(p, "You have now reached level " + p.skillLvl[5] + "!", 740, 1);
			p.frames.setConfig(p, 1179, 16);
			p.frames.showChatboxInterface(p, 740);
		}
		if(skillID == 6) {
			p.leveledUpSkill = 6;
			p.leveledUp[6] = true;
			p.requestGFX(199,0);
			p.frames.sendMessage(p, "You've just advanced a " + Misc.getSkillName(6) + " level! You have reached level " + p.skillLvl[6] + ".");
			p.frames.setString(p, "Congratulations, you have just advanced a " + Misc.getSkillName(6) + " level!", 740, 0);
			p.frames.setString(p, "You have now reached level " + p.skillLvl[6] + "!", 740, 1);
			p.frames.setConfig(p, 1179, 32);
			p.frames.showChatboxInterface(p, 740);
		}
		if(skillID == 7) {
			p.leveledUpSkill = 7;
			p.leveledUp[7] = true;
			p.requestGFX(199,0);
			p.frames.sendMessage(p, "You've just advanced a " + Misc.getSkillName(7) + " level! You have reached level " + p.skillLvl[7] + ".");
			p.frames.setString(p, "Congratulations, you have just advanced a " + Misc.getSkillName(7) + " level!", 740, 0);
			p.frames.setString(p, "You have now reached level " + p.skillLvl[7] + "!", 740, 1);
			p.frames.setConfig(p, 1179, 32768);
			p.frames.showChatboxInterface(p, 740);
		}
		if(skillID == 8) {
			p.leveledUpSkill = 8;
			p.leveledUp[8] = true;
			p.requestGFX(199,0);
			p.frames.sendMessage(p, "You've just advanced a " + Misc.getSkillName(8) + " level! You have reached level " + p.skillLvl[8] + ".");
			p.frames.setString(p, "Congratulations, you have just advanced a " + Misc.getSkillName(8) + " level!", 740, 0);
			p.frames.setString(p, "You have now reached level " + p.skillLvl[8] + "!", 740, 1);
			p.frames.setConfig(p, 1179, 131072);
			p.frames.showChatboxInterface(p, 740);
		}
		if(skillID == 9) {
			p.leveledUpSkill = 9;
			p.leveledUp[9] = true;
			p.requestGFX(199,0);
			p.frames.sendMessage(p, "You've just advanced a " + Misc.getSkillName(9) + " level! You have reached level " + p.skillLvl[9] + ".");
			p.frames.setString(p, "Congratulations, you have just advanced a " + Misc.getSkillName(9) + " level!", 740, 0);
			p.frames.setString(p, "You have now reached level " + p.skillLvl[9] + "!", 740, 1);
			p.frames.setConfig(p, 1179, 2048);
			p.frames.showChatboxInterface(p, 740);
		}
		if(skillID == 10) {
			p.leveledUpSkill = 10;
			p.leveledUp[10] = true;
			p.requestGFX(199,0);
			p.frames.sendMessage(p, "You've just advanced a " + Misc.getSkillName(10) + " level! You have reached level " + p.skillLvl[10] + ".");
			p.frames.setString(p, "Congratulations, you have just advanced a " + Misc.getSkillName(10) + " level!", 740, 0);
			p.frames.setString(p, "You have now reached level " + p.skillLvl[10] + "!", 740, 1);
			p.frames.setConfig(p, 1179, 16384);
			p.frames.showChatboxInterface(p, 740);
		}
		if(skillID == 11) {
			p.leveledUpSkill = 11;
			p.leveledUp[11] = true;
			p.requestGFX(199,0);
			p.frames.sendMessage(p, "You've just advanced a " + Misc.getSkillName(11) + " level! You have reached level " + p.skillLvl[11] + ".");
			p.frames.setString(p, "Congratulations, you have just advanced a " + Misc.getSkillName(11) + " level!", 740, 0);
			p.frames.setString(p, "You have now reached level " + p.skillLvl[11] + "!", 740, 1);
			p.frames.setConfig(p, 1179, 65536);
			p.frames.showChatboxInterface(p, 740);
		}
		if(skillID == 12) {
			p.leveledUpSkill = 12;
			p.leveledUp[12] = true;
			p.requestGFX(199,0);
			p.frames.sendMessage(p, "You've just advanced a " + Misc.getSkillName(12) + " level! You have reached level " + p.skillLvl[12] + ".");
			p.frames.setString(p, "Congratulations, you have just advanced a " + Misc.getSkillName(12) + " level!", 740, 0);
			p.frames.setString(p, "You have now reached level " + p.skillLvl[12] + "!", 740, 1);
			p.frames.setConfig(p, 1179, 1024);
			p.frames.showChatboxInterface(p, 740);
		}
		if(skillID == 13) {
			p.leveledUpSkill = 13;
			p.leveledUp[13] = true;
			p.requestGFX(199,0);
			p.frames.sendMessage(p, "You've just advanced a " + Misc.getSkillName(13) + " level! You have reached level " + p.skillLvl[13] + ".");
			p.frames.setString(p, "Congratulations, you have just advanced a " + Misc.getSkillName(13) + " level!", 740, 0);
			p.frames.setString(p, "You have now reached level " + p.skillLvl[13] + "!", 740, 1);
			p.frames.setConfig(p, 1179, 8192);
			p.frames.showChatboxInterface(p, 740);
		}
		if(skillID == 14) {
			p.leveledUpSkill = 14;
			p.leveledUp[14] = true;
			p.requestGFX(199,0);
			p.frames.sendMessage(p, "You've just advanced a " + Misc.getSkillName(14) + " level! You have reached level " + p.skillLvl[14] + ".");
			p.frames.setString(p, "Congratulations, you have just advanced a " + Misc.getSkillName(14) + " level!", 740, 0);
			p.frames.setString(p, "You have now reached level " + p.skillLvl[14] + "!", 740, 1);
			p.frames.setConfig(p, 1179, 4096);
			p.frames.showChatboxInterface(p, 740);
		}
		if(skillID == 15) {
			p.leveledUpSkill = 15;
			p.leveledUp[15] = true;
			p.requestGFX(199,0);
			p.frames.sendMessage(p, "You've just advanced a " + Misc.getSkillName(15) + " level! You have reached level " + p.skillLvl[15] + ".");
			p.frames.setString(p, "Congratulations, you have just advanced a " + Misc.getSkillName(15) + " level!", 740, 0);
			p.frames.setString(p, "You have now reached level " + p.skillLvl[15] + "!", 740, 1);
			p.frames.setConfig(p, 1179, 256);
			p.frames.showChatboxInterface(p, 740);
		}
		if(skillID == 16) {
			p.leveledUpSkill = 16;
			p.leveledUp[16] = true;
			p.requestGFX(199,0);
			p.frames.sendMessage(p, "You've just advanced a " + Misc.getSkillName(16) + " level! You have reached level " + p.skillLvl[16] + ".");
			p.frames.setString(p, "Congratulations, you have just advanced a " + Misc.getSkillName(16) + " level!", 740, 0);
			p.frames.setString(p, "You have now reached level " + p.skillLvl[16] + "!", 740, 1);
			p.frames.setConfig(p, 1179, 128);
			p.frames.showChatboxInterface(p, 740);
		}
		if(skillID == 17) {
			p.leveledUpSkill = 17;
			p.leveledUp[17] = true;
			p.requestGFX(199,0);
			p.frames.sendMessage(p, "You've just advanced a " + Misc.getSkillName(17) + " level! You have reached level " + p.skillLvl[17] + ".");
			p.frames.setString(p, "Congratulations, you have just advanced a " + Misc.getSkillName(17) + " level!", 740, 0);
			p.frames.setString(p, "You have now reached level " + p.skillLvl[17] + "!", 740, 1);
			p.frames.setConfig(p, 1179, 512);
			p.frames.showChatboxInterface(p, 740);
		}
		if(skillID == 18) {
			p.leveledUpSkill = 18;
			p.leveledUp[18] = true;
			p.requestGFX(199,0);
			p.frames.sendMessage(p, "You've just advanced a " + Misc.getSkillName(18) + " level! You have reached level " + p.skillLvl[18] + ".");
			p.frames.setString(p, "Congratulations, you have just advanced a " + Misc.getSkillName(18) + " level!", 740, 0);
			p.frames.setString(p, "You have now reached level " + p.skillLvl[18] + "!", 740, 1);
			p.frames.setConfig(p, 1179, 524288);
			p.frames.showChatboxInterface(p, 740);
		}
		if(skillID == 19) {
			p.leveledUpSkill = 19;
			p.leveledUp[19] = true;
			p.requestGFX(199,0);
			p.frames.sendMessage(p, "You've just advanced a " + Misc.getSkillName(19) + " level! You have reached level " + p.skillLvl[19] + ".");
			p.frames.setString(p, "Congratulations, you have just advanced a " + Misc.getSkillName(19) + " level!", 740, 0);
			p.frames.setString(p, "You have now reached level " + p.skillLvl[19] + "!", 740, 1);
			p.frames.setConfig(p, 1179, 1048576);
			p.frames.showChatboxInterface(p, 740);
		}
		if(skillID == 20) {
			p.leveledUpSkill = 20;
			p.leveledUp[20] = true;
			p.requestGFX(199,0);
			p.frames.sendMessage(p, "You've just advanced a " + Misc.getSkillName(20) + " level! You have reached level " + p.skillLvl[20] + ".");
			p.frames.setString(p, "Congratulations, you have just advanced a " + Misc.getSkillName(20) + " level!", 740, 0);
			p.frames.setString(p, "You have now reached level " + p.skillLvl[20] + "!", 740, 1);
			p.frames.setConfig(p, 1179, 262144);
			p.frames.showChatboxInterface(p, 740);
		}
		if(skillID == 21) {
			p.leveledUpSkill = 21;
			p.leveledUp[21] = true;
			p.requestGFX(199,0);
			p.frames.sendMessage(p, "You've just advanced a " + Misc.getSkillName(21) + " level! You have reached level " + p.skillLvl[21] + ".");
			p.frames.setString(p, "Congratulations, you have just advanced a " + Misc.getSkillName(21) + " level!", 740, 0);
			p.frames.setString(p, "You have now reached level " + p.skillLvl[21] + "!", 740, 1);
			p.frames.setConfig(p, 1179, 2097152);
			p.frames.showChatboxInterface(p, 740);
		}
		if(skillID == 22) {
			p.leveledUpSkill = 22;
			p.leveledUp[22] = true;
			p.requestGFX(199,0);
			p.frames.sendMessage(p, "You've just advanced a " + Misc.getSkillName(22) + " level! You have reached level " + p.skillLvl[22] + ".");
			p.frames.setString(p, "Congratulations, you have just advanced a " + Misc.getSkillName(22) + " level!", 740, 0);
			p.frames.setString(p, "You have now reached level " + p.skillLvl[22] + "!", 740, 1);
			p.frames.setConfig(p, 1179, 4194304);
			p.frames.showChatboxInterface(p, 740);
		}
		if(skillID == 23) {
			p.leveledUpSkill = 23;
			p.leveledUp[23] = true;
			p.requestGFX(199,0);
			p.frames.sendMessage(p, "You've just advanced a " + Misc.getSkillName(23) + " level! You have reached level " + p.skillLvl[23] + ".");
			p.frames.setString(p, "Congratulations, you have just advanced a " + Misc.getSkillName(23) + " level!", 740, 0);
			p.frames.setString(p, "You have now reached level " + p.skillLvl[23] + "!", 740, 1);
			p.frames.setConfig(p, 1179, 8388608);
			p.frames.showChatboxInterface(p, 740);
		}
	}
}